package com.itasura.adapter2;

import com.itasura.TypeC;
import com.itasura.Usb;
import lombok.extern.slf4j.Slf4j;

/**
 * 我是usb适配器，通过组合来实现适配器功能
 * @author sailor wang
 * @date 2018/8/27 下午1:55
 * @description
 */
@Slf4j
public class UsbAdapter implements Usb{
    private TypeC typeC;

    public UsbAdapter(TypeC typeC) {
        this.typeC = typeC;
    }

    @Override
    public void usb() {
        typeC.typeC();
    }
}